package business.report.impl;

import business.report.PoliceHotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.PoliceHotel;
import report.domain.PoliceHotelCriteria;
import report.mapper.PoliceHotelMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/13.
 */
@Service(value = "policeHotelService")
public class PoliceHotelServiceImpl implements PoliceHotelService{

    @Autowired
    PoliceHotelMapper policeHotelMapper;
    @Override
    public List<PoliceHotel> selectAllPoliceHotel() {
        PoliceHotelCriteria criteria = new PoliceHotelCriteria();
        criteria.createCriteria().getAllCriteria();
        return policeHotelMapper.selectByExample(criteria);
    }
}
